export tag=v1.0
root:
	#export ROOT=github.com/cncamp/golang
	export ROOT=F:/GO_project/src/learning_go
build:
	echo "building httpserver binary"
	#CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/amd64 .
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64 .
release: build
	echo "building httpserver container"
	docker build -t xt00002003/httpserver:${tag} .
push: release

	echo "pushing cncamp/httpserver"
	echo "需要先登录自己的docker账号才能进行push操作"
	docker push xt00002003/httpserver:v1.0